package com.qf;

import com.qf.pojo.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 启动类  | 引导类
 *
 *   当前启动类所在包为基本包来进行扫描的
 *
 *    基本包  com.qf
 *
 *    @ComponentScan(basePackages = {"com.qf.controller","com.qf.service"}) : 自定义扫描包的基本包
 *
 *    @SpringBootApplication(scanBasePackages = {"com.qf.controller","com.qf.service"}) : 扫描基本包
 *
 *    @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) : 手动关闭自动装配
 *    com.xkj
 * @author lixu
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) // 引入的启动器 都可以实现自动装配   配置ip 地址 port 直接使用了
//@ComponentScan(basePackages = {"com.qf.controller","com.qf.service"})
public class Application {


    public static void main(String[] args) {
        //启动当前项目
        SpringApplication.run(Application.class,args);

    }

}
